import 'package:flutter/material.dart';
import 'package:flutter_bilibili/route/index.dart';
import 'package:flutter_bilibili/util/color_util.dart';
import 'package:get/get.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      debugShowCheckedModeBanner: false, //去掉debug图标
      theme: ThemeData(
        useMaterial3: false, // 禁用Material3样式
        primarySwatch: primary,
      ),
      initialRoute: '/index',
      defaultTransition: AppPages.defaultTransition,
      getPages: AppPages.routes,
    );
  }
}
